package gam.t1.appraisal2.dinv.view;

import org.bukkit.inventory.ItemStack;

import java.util.Map;
import java.util.function.Function;
import java.util.function.Predicate;

public interface CollectionsView<T extends CollectionsView> extends InvView{
    int[] getIndex();
    // 记录一个SingleView
    SingleView<T> register(int index, Predicate<T> clickhandler, Function<T, ItemStack> itemshowhandler);
    // 获取该视图的所有Item的索引快照
    Map<Integer, ItemStack> getStorageStacks(CollectionsView<T> main);
}
